<?php
declare (strict_types=1);

namespace app\admin\validate;

use think\Validate;

class Menu extends Validate
{
    protected $rule = [
        'title' => 'require',
        'name' => 'require',
        'sort' => 'require|number'
    ];

    protected $message = [
        'title.require' => '请输入菜单名称',
        'name.require' => '请输入节点',
        'sort.require' => '请输入排序',
        'sort.number' => '排序必须是数字'
    ];
}
